diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-08-09 21:44:27 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-08-09 21:44:27 +0300 |
commit | 4a9790b9d8262f44bd42bfe9af0860873725b32b (patch) | |
tree | f39be0aa5ae5514964dc71bd1e98a818f65094f9 /tests/status.test | |
parent | 30f6a563fc8c5b2d5c70cd55838aca4e5692b3e4 (diff) |
Fix other command testscripts to pass for older git versions
Diffstat (limited to 'tests/status.test')
-rw-r--r-- | tests/status.test | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/tests/status.test b/tests/status.test index 66de654..12ccc34 100644 --- a/tests/status.test +++ b/tests/status.test @@ -2,12 +2,10 @@ # copyright : Copyright (c) 2014-2018 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file -.include common.test git.test project.test +.include common.test project.test cxx = cc "config.cxx=$config.cxx" -snapshot = ($git_supported ? '19700101000000' : 'z') - new += 2>! init += $cxx -d prj 2>! sync += -d prj 2>! @@ -31,7 +29,7 @@ deinit += -d prj $init -C @cfg &prj-cfg/***; - $* >"prj configured 0.1.0-a.0.$snapshot"; + $* >~'%prj configured 0\.1\.0-a\.0\..+%'; $deinit 2>>/"EOE" deinitializing in project $~/prj/ @@ -48,14 +46,14 @@ deinit += -d prj $init -C @cfg1 &prj-cfg1/***; $init -C @cfg2 &prj-cfg2/***; - $* @cfg2 >"prj configured 0.1.0-a.0.$snapshot"; + $* @cfg2 >~'%prj configured 0\.1\.0-a\.0\..+%'; - $* --all >>"EOO"; + $* --all >>~%EOO%; in configuration @cfg1: - prj configured 0.1.0-a.0.$snapshot + %prj configured 0\.1\.0-a\.0\..+% in configuration @cfg2: - prj configured 0.1.0-a.0.$snapshot + %prj configured 0\.1\.0-a\.0\..+% EOO $deinit 2>>/"EOE" @@ -85,16 +83,16 @@ deinit += -d prj depends: libprj EOI - $* --recursive >>"EOO" 2>>/"EOE"; # Note: implicitly fetches in cfg. - prj configured 0.1.0-a.0.$snapshot available 0.1.0-a.0.$snapshot#1 + $* --recursive >>~%EOO% 2>>/"EOE"; # Note: implicitly fetches in cfg. + %prj configured 0\.1\.0-a\.0\..+ available 0\.1\.0-a\.0\..+#1% EOO fetching dir:$~/libprj \(prerequisite of dir:$~/prj\) EOE $sync; - $* --recursive >>~"%EOO%"; - prj configured 0.1.0-a.0.$snapshot#1 + $* --recursive >>~%EOO%; + %prj configured 0\.1\.0-a\.0\..+#1% % libprj configured 0.+% EOO |