]> rtime.felk.cvut.cz Git - omk.git/blobdiff - tests/default-config
Update wvtool
[omk.git] / tests / default-config
index cce4147d3304399dc0b31b9569e163ac351a16d3..21a4074e2d1886486176ba915f40687d942e77e2 100755 (executable)
@@ -1,4 +1,35 @@
-#!/bin/sh
-make || exit 2
-echo "Default config differs" > _error
-diff -u config.omk-correct config.omk-default || exit 1
+#!/bin/bash
+
+. ./wvtest.sh
+
+cat > 'Makefile.omk' <<EOF     # OMK manual includes this file - do not modify it
+default_CONFIG = CONFIG_DEBUG=y CONFIG_SLOW=n
+default_CONFIG += CONFIG_NUM=123 CONFIG_ARCH=arm
+default_CONFIG += CONFIG_QUOTES="Text+quotes"
+
+SUBDIRS=subdir
+EOF
+cat > 'config.omk-correct' <<EOF # OMK manual includes this file
+# Start of OMK config file
+# This file should not be altered manually
+# Overrides should be stored in file config.omk
+
+# Config for subdir
+CONFIG_SUBDIR=y
+#CONFIG_DEBUG=x
+# Config for 
+CONFIG_DEBUG=y
+CONFIG_SLOW=n
+CONFIG_NUM=123
+CONFIG_ARCH=arm
+CONFIG_QUOTES="Text+quotes"
+EOF
+
+mkdir subdir
+cat > 'subdir/Makefile.omk' <<EOF
+default_CONFIG = CONFIG_SUBDIR=y CONFIG_DEBUG=x
+EOF
+
+omkize
+WVPASS make
+WVPASS diff -u config.omk-correct config.omk-default