]> rtime.felk.cvut.cz Git - omk/sssa.git/blobdiff - tests/headers/generated/runtest
Generated header files didn't depend on all config.files.
[omk/sssa.git] / tests / headers / generated / runtest
index 2576a1652b9068fd764dbeac93b1478adee4905f..f91e1cf103d51c4ea6e57a73b4f940367e7f59ef 100755 (executable)
@@ -2,26 +2,26 @@
 
 source ../../functions.sh
 
-make default-config || canttest
+make default-config || error "Can't run make default-config"
 make include-pass || error "Can't run make include-pass"
 
 GC=./_compiled/include/global.h
-test -f "$GC" || canttest "Can't find the produced global config"
+test -f "$GC" || error "Can't find the produced global config"
 
-grep -Fv "/* config file:" $GC | diff -u correct/global.h - || error "Global config differs"
+grep -Fv "/* config files:" $GC | diff -u correct/global.h - || error "Global config differs"
 
-make || canttest "Can't run make to produce local config"
-make CFLAGS=-Wall || canttest "Make failed with custom CFLAGS"
+make || error "Can't run make to produce local config"
+make CFLAGS=-Wall || error "Make failed with custom CFLAGS"
 LC=$(find _build -wholename '*/lincan/lincan_config.h')
-test -f "$LC" || canttest "Can't find the produced local config"
-grep -Fv "/* config file:" $LC | diff -u correct/lincan_config.h - || error "Local config differs"
+test -f "$LC" || error "Can't find the produced local config"
+grep -Fv "/* config files:" $LC | diff -u correct/lincan_config.h - || error "Local config differs"
 
 TLC=$(find _build -name 'toplevel_config.h')
-test -f "$TLC" || canttest "Can't find the produced local config"
-grep -Fv "/* config file:" $TLC | diff -u correct/toplevel_config.h - || error "Toplevel local config differs"
+test -f "$TLC" || error "Can't find the produced local config"
+grep -Fv "/* config files:" $TLC | diff -u correct/toplevel_config.h - || error "Toplevel local config differs"
 
+touch -t 200001010000 $LC
 stat -c '%z' $LC > stat.log1
-sleep 1
 touch config.omk-default
 make
 stat -c '%z' $LC > stat.log2