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