From a40b09310cee1098dfe8ae939fad5045a58c7dcc Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 17 Jul 2013 19:47:40 -0400 Subject: [PATCH] tests: Add a test for link checkout speedup --- tests/test-basic.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test-basic.sh b/tests/test-basic.sh index a58a1fd7..bb38434c 100755 --- a/tests/test-basic.sh +++ b/tests/test-basic.sh @@ -19,7 +19,7 @@ set -e -echo "1..34" +echo "1..35" . $(dirname $0)/libtest.sh @@ -253,4 +253,9 @@ ostree --repo=repo refs > reflist assert_not_file_has_content reflist '^test3$' echo "ok reflist --delete" +cd ${test_tmpdir} +rm -rf test2-checkout +$OSTREE checkout test2 test2-checkout +(cd test2-checkout && $OSTREE commit --link-checkout-speedup -b test2 -s "tmp") +echo "ok commit with link speedup"