Language Selection

English French German Italian Portuguese Spanish

Writing Perl test cases

Filed under

If you've ever automated any operations with Perl you'll most likely have written a small script or two, and then left them to run. But how do you know that your code is correct? The answer is to write some test cases and verify they perform correctly. With Perls test facilities this is a simple thing to do.

Most large Perl projects have a test suite, and so do many of the common modules you'll have installed.

To get started we'll look at a simple example. Suppose your script uses some non-standard Perl modules that suggests the very first test you write should verify that those are available. That way if you attempt to run the program upon a new host you'll immediately know whether you need to install these non-standard modules.

Full Article.

More in Tux Machines

ZTE launches container networking solution for open source NFV

ZTE has unveiled an end-to-end container networking solution for open-source NFV, which it hopes will promote the development of cloud native technology and the open source ecosystem. The vendor says operators need the ability to quickly adapt to changing network demands with low cost solutions while maintaining continuous innovation. As such, it believes that containers are the best carrier for NFV transformation. ZTE says that container-based cloud native applications will become the trend for communications technology applications. However, the native Kubernetes network model used in the IT industry is too simple to meet telco service requirements. Read more

LuxMark OpenCL Performance On Windows vs. Linux With Radeon/NVIDIA

When carrying out this week's Windows vs. Linux gaming tests with AMD Radeon and NVIDIA GeForce GPUs on the latest drivers, I also took the opportunity to run some fresh OpenCL benchmarks on Windows and Linux with the competing GPU vendors. I was particularly interested in running this test given the maturing state of ROCm on Linux for providing a new and modern compute stack... That coming with Linux 4.17+ will even begin to work from a mainline Linux kernel. Albeit for this round of testing was using AMD/GPUOpen's stock ROCm Ubuntu packages for 16.04 LTS as outlined on their GitHub page. Read more

Top Linux tools for writers

If you've read my article about how I switched to Linux, then you know that I’m a superuser. I also stated that I’m not an “expert” on anything. That’s still fair to say. But I have learned many helpful things over the last several years, and I'd like to pass these tips along to other new Linux users. Read more

i.MX6 ULL module runs Linux with real-time patch

Artila’s “M-X6ULL” COM runs Linux 4.14 with the PREEMPT_RT patch on an 800MHz i.MX6 ULL, and offers dual LAN controllers, 4GB eMMC or an optional microSD slot, and an optional carrier board. The M-X6ULL, which follows other Artila i.MX based modules such as the i.MX537 based M-5360A, measures only 68 x 43mm. Still, that’s hardly a record for modules featuring NXP’s Linux-driven, power-sipping i.MX6 ULL. MYIR’s MYC-Y6ULX measures 39 x 37mm. Read more