Files
nginx-custom/ngx-fancyindex/t/has-index.test
2017-02-26 00:07:07 +01:00

8 lines
247 B
Bash

#! /bin/bash
cat <<---
This test ensures that the "index.html" is returned instead of a directory
listing when fetching a directory which contains an index file.
--
nginx_start
diff -u "${TESTDIR}/has-index/index.html" <( fetch /has-index/ ) 1>&2