1#!/bin/bash 2# This file contains the text fixtures — the known, constant data — that are 3# used when setting up the environment that exa’s tests get run in. 4 5 6# The directory that all the test files are created under. 7export TEST_ROOT=/testcases 8 9 10# Because the timestamps are formatted differently depending on whether 11# they’re in the current year or not (see `details.rs`), we have to make 12# sure that the files are created in the current year, so they get shown 13# in the format we expect. 14export CURRENT_YEAR=$(date "+%Y") 15export FIXED_DATE="${CURRENT_YEAR}01011234.56" # 1st January, 12:34:56 16 17 18# We also need an UID and a GID that are guaranteed to not exist, to 19# test what happen when they don’t. 20export FIXED_BAD_UID=666 21export FIXED_BAD_GID=616 22 23 24# We create two users that own the test files. 25# 26# The first one just owns the ordinary ones, because we don’t want the 27# test outputs to depend on “vagrant” or “ubuntu” existing. 28# 29# The second one has a long name, to test that the file owner column 30# widens correctly. The benefit of Vagrant is that we don’t need to 31# set this up on the *actual* system! 32export FIXED_USER="cassowary" 33export FIXED_LONG_USER="antidisestablishmentarienism" 34 35 36# A couple of dates, for date-time testing. 37export FIXED_OLD_DATE='200303030000.00' 38export FIXED_MED_DATE='200606152314.29' # the june gets used for fr_FR locale tests 39export FIXED_NEW_DATE='200912221038.53' # and the december for ja_JP local tests 40 41# Dates that extend beyond 32-bit timespace. 42export FIXED_PAST_DATE='170001010000.00' 43export FIXED_FUTURE_DATE='230001010000.00' 44