File: tar

package info (click to toggle)
weborf 1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,152 kB
  • sloc: sh: 5,272; ansic: 3,505; python: 762; makefile: 119; xml: 44
file content (15 lines) | stat: -rwxr-xr-x 490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
. testsuite/functions.sh

PORT=12353
run_weborf -b site1 -p $PORT --tar

# Check a subdirectory
curl -s http://127.0.0.1:$PORT/sub1/ | tar -z --list | grep sub1/index.dat

# Check the main directory
curl -s http://127.0.0.1:$PORT/ | tar -z --list | grep sub1/index.dat

# Omit the trailing /, it should redirect and work
curl --follow -s http://127.0.0.1:$PORT/sub1 | tar -z --list | grep sub1/index.dat
curl -s http://127.0.0.1:$PORT/sub1 | tar -z --list | grep sub1/index.dat