source: tags/initial/PERL2ARB/test.pl

Last change on this file was 2, checked in by oldcode, 24 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 919 bytes
Line 
1#!/usr/bin/perl
2
3# Before `make install' is performed this script should be runnable with
4# `make test'. After `make install' it should work as `perl test.pl'
5
6######################### We start with some black magic to print on failure.
7
8# Change 1..1 below to 1..last_test_to_print .
9# (It may become useful if the test is moved to ./t subdirectory.)
10
11BEGIN {print "1..1\n";}
12END {print "not ok 1\n" unless $loaded;}
13use ARB;
14$loaded = 1;
15print "ok 1\n";
16
17######################### End of black magic.
18
19# Insert your test code below (better if it prints "ok 13"
20# (correspondingly "not ok 13") depending on the success of chunk 13
21# of the test code):
22
23$gb_main = &ARB::open(":");
24&ARB::begin_transaction($gb_main);
25$gb_alignment_name = &ARB::search($gb_main,"presets/use");
26$name = &ARB::read_string($gb_alignment_name);
27&ARB::commit_transaction($gb_main);
28print "alignment name is $name\n";
29&ARB::close($gb_main);
30
Note: See TracBrowser for help on using the repository browser.