core/builtins/compare.cif
changeset 79 f3d01c9dd099
parent 75 3c3961c1ae26
--- a/core/builtins/compare.cif	Mon Sep 20 16:46:34 2010 +0100
+++ b/core/builtins/compare.cif	Wed Sep 22 10:56:39 2010 +0100
@@ -36,3 +36,15 @@
 
 Copyright (c) 2006-2010 Accenture. All rights reserved.
 
+==smoke-test
+
+date --timestamp | export -s TIMESTAMP
+export Temp compare-test-$TIMESTAMP-
+echo "Stuff" > $Temp1
+echo "Stuff" > $Temp2
+echo "Stuff thats different" > $Temp3
+
+compare $Temp1 $Temp2 || $Error # Should be same
+compare $Temp1 $Temp3 && $Error # Should be different
+
+rm $Temp1 $Temp2 $Temp3