File: sources

package info (click to toggle)
xapers 0.9.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 644 kB
  • sloc: python: 2,571; sh: 1,294; makefile: 53
file content (45 lines) | stat: -rwxr-xr-x 1,516 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash

test_description='Sources interface'

. ./test-lib.sh

export XAPERS_SOURCE_PATH=':'

################################################################

# FIXME: add test for source2bib
# FIXME: add test for scandoc

test_begin_subtest 'list sources'
xapers sources | sort >OUTPUT
cat <<EOF >EXPECTED
         dcc: LIGO Document Control Center (https://dcc.ligo.org/) [builtin]
         doi: Digital Object Identifier (https://dx.doi.org/) [builtin]
       arxiv: Open access e-print service (http://arxiv.org/) [builtin]
cryptoeprint: Cryptology ePrint Archive (https://eprint.iacr.org/) [builtin]
EOF
test_expect_equal_file OUTPUT EXPECTED

# test_begin_subtest 'source2bib doi'
# xapers source2bib 'doi:10.1364/JOSAA.29.002092' >OUTPUT
# cat <<EOF >EXPECTED
# @article{Izumi_2012,
#     author = "Izumi, Kiwamu and Arai, Koji and Barr, Bryan and Betzwieser, Joseph and Brooks, Aidan and Dahl, Katrin and Doravari, Suresh and Driggers, Jennifer C. and Korth, W. Zach and Miao, Haixing and et al.",
#     title = "Multicolor cavity metrology",
#     volume = "29",
#     ISSN = "1520-8532",
#     url = "http://dx.doi.org/10.1364/JOSAA.29.002092",
#     DOI = "10.1364/josaa.29.002092",
#     number = "10",
#     journal = "Journal of the Optical Society of America A",
#     publisher = "Optical Society of America (OSA)",
#     year = "2012",
#     pages = "2092"
# }
# EOF
# test_expect_equal_file OUTPUT EXPECTED

################################################################

test_done