sapling/eden/scm/tests/test-archive-symlinks.t
Jun Wu 00ecfbb16c tests: opt-in new test runner for passing tests
Summary:
A lot of tests are passing with the new test runner.

This is done by `./edit-feature-header.py debugruntest` and paste
the `Passed:` section from `hg debugruntest -v test-*.t` output.

Note: some tests fail with this but pass with debugruntest. They
will be investigated as follow-up.

Differential Revision: D34931992

fbshipit-source-id: 99abc3d9800bb1dd3487dbfa15d715c0bd3ba878
2022-08-16 14:59:23 -07:00

43 lines
656 B
Perl

#chg-compatible
#debugruntest-compatible
#require symlink tar unzip
$ newrepo repo
$ ln -s nothing dangling
avoid tar warnings about old timestamp
$ hg ci -d '2000-01-01 00:00:00 +0000' -qAm 'add symlink'
$ hg archive -t files ../archive
$ hg archive -t tar -p tar ../archive.tar
$ hg archive -t zip -p zip ../archive.zip
files
$ cd "$TESTTMP"
$ cd archive
$ f dangling
dangling -> nothing
tar
$ cd "$TESTTMP"
$ tar xf archive.tar
$ cd tar
$ f dangling
dangling -> nothing
#if unziplinks
zip
$ cd "$TESTTMP"
$ unzip archive.zip > /dev/null 2>&1
$ cd zip
$ f dangling
dangling -> nothing
#endif
$ cd ..