Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 7e636a7
  • /
  • tools
  • /
  • pci
  • /
  • pcitest.sh
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:75ed48ff2990053d1e688d314bd6dabd9ff3e957
directory badge Iframe embedding
swh:1:dir:7b150d3bcf0af30c26a252dc66a3934eb09a32f1
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
pcitest.sh
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0

echo "BAR tests"
echo

bar=0

while [ $bar -lt 6 ]
do
	pcitest -b $bar
	bar=`expr $bar + 1`
done
echo

echo "Interrupt tests"
echo

pcitest -i 0
pcitest -l

pcitest -i 1
msi=1

while [ $msi -lt 33 ]
do
        pcitest -m $msi
        msi=`expr $msi + 1`
done
echo

pcitest -i 2
msix=1

while [ $msix -lt 2049 ]
do
        pcitest -x $msix
        msix=`expr $msix + 1`
done
echo

echo "Read Tests"
echo

pcitest -i 1

pcitest -r -s 1
pcitest -r -s 1024
pcitest -r -s 1025
pcitest -r -s 1024000
pcitest -r -s 1024001
echo

echo "Write Tests"
echo

pcitest -w -s 1
pcitest -w -s 1024
pcitest -w -s 1025
pcitest -w -s 1024000
pcitest -w -s 1024001
echo

echo "Copy Tests"
echo

pcitest -c -s 1
pcitest -c -s 1024
pcitest -c -s 1025
pcitest -c -s 1024000
pcitest -c -s 1024001
echo

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top