]> rtime.felk.cvut.cz Git - omk.git/blob - tests/default-config
Update wvtool
[omk.git] / tests / default-config
1 #!/bin/bash
2
3 . ./wvtest.sh
4
5 cat > 'Makefile.omk' <<EOF      # OMK manual includes this file - do not modify it
6 default_CONFIG = CONFIG_DEBUG=y CONFIG_SLOW=n
7 default_CONFIG += CONFIG_NUM=123 CONFIG_ARCH=arm
8 default_CONFIG += CONFIG_QUOTES="Text+quotes"
9
10 SUBDIRS=subdir
11 EOF
12 cat > 'config.omk-correct' <<EOF # OMK manual includes this file
13 # Start of OMK config file
14 # This file should not be altered manually
15 # Overrides should be stored in file config.omk
16
17 # Config for subdir
18 CONFIG_SUBDIR=y
19 #CONFIG_DEBUG=x
20 # Config for 
21 CONFIG_DEBUG=y
22 CONFIG_SLOW=n
23 CONFIG_NUM=123
24 CONFIG_ARCH=arm
25 CONFIG_QUOTES="Text+quotes"
26 EOF
27
28 mkdir subdir
29 cat > 'subdir/Makefile.omk' <<EOF
30 default_CONFIG = CONFIG_SUBDIR=y CONFIG_DEBUG=x
31 EOF
32
33 omkize
34 WVPASS make
35 WVPASS diff -u config.omk-correct config.omk-default